package com.webreport.model.db;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sm")
@GenericGenerator(name = "generator", strategy = "uuid.hex")
public class SessionMonitor implements java.io.Serializable{
	private static final long serialVersionUID = 3091566634414213109L;
	// 代码
	@Id
	@GeneratedValue(generator = "generator")
	@Column(nullable = false, unique = true, length = 32,name="a")
	private String clientid;
	@Column(nullable = false, length = 50,name="b")
	private String username;
	@Column(nullable = false, length = 500,name="c")
	private String user;
	@Column(nullable = true, length = 50,name="d")
	private String ip;
	@Column(nullable = true, length = 500,name="e")
	private String permission;
	@Column(nullable = true, length = 500,name="f")
	private String reports;
	@Column(nullable = false, length = 20,name="g")
	private Date logintime;
	@Column(nullable = true, length = 20,name="h")
	private Date expiretime;
	@Column(nullable = true, length = 20,name="k")
	private Date logofftime;
	@Column(nullable = false, length = 1,name="l")
	private boolean enabled;
	public String getClientid() {
		return clientid;
	}
	public void setClientid(String clientid) {
		this.clientid = clientid;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getPermission() {
		return permission;
	}
	public void setPermission(String permission) {
		this.permission = permission;
	}
	public String getReports() {
		return reports;
	}
	public void setReports(String reports) {
		this.reports = reports;
	}
	public Date getLogintime() {
		return logintime;
	}
	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}
	public Date getExpiretime() {
		return expiretime;
	}
	public void setExpiretime(Date expiretime) {
		this.expiretime = expiretime;
	}
	public Date getLogofftime() {
		return logofftime;
	}
	public void setLogofftime(Date logofftime) {
		this.logofftime = logofftime;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	
	
}
